// WindowThread.cpp : implementation file
//

#include "stdafx.h"
#include "MFC10U.h"
#include "WindowThread.h"


// CWindowThread

IMPLEMENT_DYNCREATE(CWindowThread, CWinThread)

CWindowThread::CWindowThread()
{
}

CWindowThread::~CWindowThread()
{
}

BOOL CWindowThread::InitInstance()
{
	// TODO:  perform and per-thread initialization here
	::AFX_MANAGE_STATE(::AfxGetStaticModuleState());
	dialog.Create(IDD_DIALOG_MAIN);
	dialog.ShowWindow(SW_SHOW);
	this->m_pMainWnd=&dialog;
	return TRUE;
}

int CWindowThread::ExitInstance()
{
	// TODO:  perform any per-thread cleanup here
	return CWinThread::ExitInstance();
}

BEGIN_MESSAGE_MAP(CWindowThread, CWinThread)
END_MESSAGE_MAP()


// CWindowThread message handlers
